
package com.hlkj.pay.app.merchant.ext.impl.dffpay;
/*
 * Hlpay-Plus aggregate payment system.
 * Copyright (c) 2024-2025 Hlpay Team Copyright has the right of final interpretation.
 */

import com.hlkj.framework.common.pojo.CommonResult;
import com.hlkj.framework.extension.ExtensionPointI;
import com.hlkj.pay.app.merchant.ext.dto.order.ChannelPayOrderContext;
import com.hlkj.pay.app.merchant.ext.dto.order.ChannelPayOrderQueryContext;
import com.hlkj.pay.app.merchant.ext.dto.order.ChannelRefundPayOrderContext;

/**
 * @author HlpayTeam
 * @date 2024/10/14 9:16
 */
public interface DffScenePayOrderExtPt extends ExtensionPointI {

    /**
     * 提交渠道订单
     *
     * @param channelPayOrderContext
     */
    void submitChannelPayOrder(ChannelPayOrderContext channelPayOrderContext);

    /**
     * 渠道订单查询
     *
     * @param channelPayOrderQueryContext
     */
    void queryChannelPayOrder(ChannelPayOrderQueryContext channelPayOrderQueryContext);

    /**
     * 渠道订单关闭
     *
     * @param channelPayOrderQueryContext
     */
    void closeChannelPayOrder(ChannelPayOrderQueryContext channelPayOrderQueryContext);

    /**
     * 渠道关闭订单查询
     *
     * @param channelPayOrderQueryContext
     */
    void queryChannelClosePayOrder(ChannelPayOrderQueryContext channelPayOrderQueryContext);

    /**
     * 渠道订单退款
     *
     * @param channelRefundPayOrderContext
     */
    void refundChannelPayOrder(ChannelRefundPayOrderContext channelRefundPayOrderContext);

    /**
     * 渠道退款订单查询
     *
     * @param channelRefundPayOrderContext
     */
    void queryRefundChannelPayOrder(ChannelRefundPayOrderContext channelRefundPayOrderContext);

    /**
     * 
     * @param channelRefundPayOrderContext
     * @return
     */
    boolean refundApply(ChannelRefundPayOrderContext channelRefundPayOrderContext);

    /**
     * 
     * @param channelPayOrderContext
     * @return
     */
    CommonResult<String> channelOrderCode(ChannelPayOrderContext channelPayOrderContext);
}
